import request from '@/utils/request'

// 查询工会经费计提列表
export function listGfjfjt(query) {
  return request({
    url: '/basebill/gfjfjt/list',
    method: 'get',
    params: query
  })
}

// 查询工会经费计提详细
export function getGfjfjt(fid) {
  return request({
    url: '/basebill/gfjfjt/' + fid,
    method: 'get'
  })
}

// 新增工会经费计提
export function addGfjfjt(data) {
  return request({
    url: '/basebill/gfjfjt',
    method: 'post',
    data: data
  })
}

// 修改工会经费计提
export function updateGfjfjt(data) {
  return request({
    url: '/basebill/gfjfjt',
    method: 'put',
    data: data
  })
}

// 删除工会经费计提
export function delGfjfjt(fid) {
  return request({
    url: '/basebill/gfjfjt/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importGfjfjt(fids) {
  return request({
    url: '/basebill/gfjfjt/importGfjfjt/' + fids,
    method: 'get'
  })
}
